package com.yyt.springbootdemorabbitmq.config;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 绑定exchange与queue
 *
 * @author: yeyangtao
 * @date: 2019/12/3 15:03
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Queue queue() {
        return new Queue("string");
    }

    @Bean
    public Queue queueObj() {
        return new Queue("object");
    }
}
